package com.ym.core.es.domain.index;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 主键
 *
 * @author: 李涛
 * @version: 2020年02月17日 10:01
 */
public abstract class BaseIdIndex {

	/**
	 * 文档ID,业务ID
	 */
	@Id
	private String id;

	/**
	 * 省份
	 */
	@Field(type = FieldType.Keyword)
	private String prov;

	/**
	 * 市
	 */
	@Field(type = FieldType.Keyword)
	private String city;

	/**
	 * 区域
	 */
	@Field(type = FieldType.Keyword)
	private String area;

	/**
	 * 发布状态
	 */
	@Field(type = FieldType.Keyword)
	private String publishStatus;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProv() {
		return prov;
	}

	public void setProv(String prov) {
		this.prov = prov;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getPublishStatus() {
		return publishStatus;
	}

	public void setPublishStatus(String publishStatus) {
		this.publishStatus = publishStatus;
	}
}
